home *** CD-ROM | disk | FTP | other *** search
/ HyperLib 1997 Winter - Disc 1 / HYPERLIB-1997-Winter-CD1.ISO.7z / HYPERLIB-1997-Winter-CD1.ISO / オンラインウェア / UTIL / DefaultApp.sit / About Default Application next >
Text File  |  1994-01-31  |  4KB  |  37 lines

  1. Default Application is a utility for configuring Finder 7ユs choice of the application to launch for documents whose creators canユt be found. For example, I have my Finder configured so that if I double-click a MacWrite II or Microsoft Word document, it is automatically opened with MacWrite Pro. There are other utilities around for doing this, but what make mine different is that itユs a control panel, and lets you make changes quickly, without quitting and restarting the Finder.
  2.  
  3. Installing Default Application is easy; simply put it anywhere itユs convenient to you. Control panels normally go in the メControl Panelsモ folder, but this is really only a requirement for those control panels that load code into the system at startup (such as Appleユs Easy Access). Default Application does no such thing, so it can go anywhere.
  4.  
  5. Theory of operation: every Macintosh file has a four-character type code, which is supposed to be an indicator of the type of content of the file: for example, plain text files have type メTEXTモ, QuickDraw pictures are stored in files of type メPICTモ, and so on. Files also have a four-character signature code; the Finder uses this to identify the application to be launched when you double-click a document. For example, the MacWrite Pro application and its documents all have the signature メMWPRモ.
  6.  
  7. However, you might occasionally receive documents from other people, which were created with applications you donユt have. Finder 7 has built into it a list of default applications to use to open these documents. The standard list allows you, among other things, to open メTEXTモ and メPICTモ documents with Appleユs TeachText utility, but this list can be extended to include any other document types that you may need to handle. Each entry in the list contains a document type, and the signature of the default application to launch. Of course, itユs up to you to ensure that the application can in fact handle documents of that type.
  8.  
  9. I wonユt go into step-by-step detail of how to use Default Application; if you need detailed help, simply turn on System 7ユs Balloon Help.
  10.  
  11. Small usage note: you might like to be able to specify more than one application to use  to open documents of a certain type; if the first application canユt be found, the Finder should look for the second one, and so on. This doesnユt work. If you have two entries specifying the same document type, the Finder only looks at the first one.
  12.  
  13. ・Compatibility caveat: the Finderユs default application information is not officially documented, and its format could change in some future version of the Finder. If that should happen, Default Application could malfunction in all kinds of mysterious ways, and in the worst case could corrupt the Finder. Use at your own risk!・
  14.  
  15. Have fun. Please let me know if you hit any problems. Suggestions for improvement are welcome.
  16.  
  17. ニ Development history:
  18.  
  19. 1.0d3 1992 March 28
  20. First public release.
  21.  
  22. 1.0d4 1992 May 25
  23. Made sure add/modify dialog is always fully on-screen, regardless of position of main control panel window ム otherwise OK/Cancel buttons could become inaccessible.
  24.  
  25. 1.0d5 1992 July 1
  26. Donユt try locking a nonexistent handle on the initialization call. Hopefully this should fix those crashes some people have been reporting. Serves me right for not reading the documentation more closely...
  27.  
  28. 1.0a1 1994 January 31
  29. Update for newer Finders which lock their resource map against changes. I bring up a notification dialog with the option to override the lock. Also put in a bit more error checking.
  30.  
  31. Lawrence DユOliveiro
  32. Info & Tech Services Division
  33. University of Waikato
  34. Hamilton
  35. New Zealand
  36. Internet: ldo@waikato.ac.nz
  37.